package com.testmvc.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.testmvc.entity.User;

@Mapper
public interface UserMapper {
	@Select("Select username,password from user where username=#{username}")
	User testUser (@Param("username") String username);
	
	
	@Insert("Insert into user (username,password) values(#{username},#{password})")
	int addUser(@Param("username")String username,@Param("password") String password);
}
